<template>
	<div class="myspec">
		<div class="myspec-li" v-for="(item,index) in 5" :key="index">
			<div class="user">
				<span class="avatar">
					<img src="http://image.pearvideo.com/cont/20180122/cont-1260716-10941006.png">
				</span>用户001
			</div>
			<div class="date">
				最近更新：1天前
			</div>
		</div>
	</div>
</template>

<script>
	import img_avatar from '@/assets/avatar.png'
	export default {
		data () {
			return {
				img_avatar,
			}
		},
	}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
	.myspec{
		.myspec-li {
			display: flex;
			justify-content: space-between;
			font-size: 0.5rem;
			line-height: 2.25rem;
			margin: 0 0.4rem;
			padding: 0.4rem 0;
			border-bottom: 1px solid #eee;
		}
		.user {
			display: flex;
			font-weight: bold;
			.avatar {
				display: block;
				position: relative;
				width: 4rem;
				height: calc(56.25%*4rem);
				margin-right:0.4rem;
				overflow: hidden;
			}
		}
		.date {
			color:#ccc;
		}
	}
</style>
